package com.xuehu.cloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author guoweia@cslc.com.cn
 * @createTime 2020/11/17 14:19
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String message;
    private T   data;

    public CommonResult(Integer code, String message) {
        this(code, message, null);
    }
}
